#ifndef Thread_h
#define Thread_h

#define _WINSOCKAPI_
#include <windows.h>

typedef HANDLE pthread_t;

class CThread{
public:
	CThread();
	~CThread();
	void start();
	bool is_running();
	void suspend();

private:
	static void launch(void * n_thread);

protected:
	bool m_Running;
	pthread_t * m_thread;
	virtual void execute() = 0;
};

#endif